import {Component, OnInit, Input, Output, EventEmitter} from '@angular/core';

@Component({
  selector: 'app-project-item',
  templateUrl: './project-item.component.html',
  styleUrls: ['./project-item.component.scss']
})
export class ProjectItemComponent implements OnInit {

  @Input() public item: any;
  @Output() public invite = new EventEmitter();
  @Output() public edit = new EventEmitter();
  @Output() public del = new EventEmitter();

  constructor() {
  }

  ngOnInit() {
  }

  onInviteClick() {
    this.invite.emit();
  }

  onEditClick() {
    this.edit.emit();
  }

  onDelClick() {
    this.del.emit();
  }

}
